#pragma once
#include "path_component.h"

class component_connector: public path_component
{
public:
	float previous_position[3];
	float previous_delta[3];
	bool previous_valid;

	component_connector(void);
	~component_connector(void);
	void clear();

	void draw(float* start, float* end, float start_dist, float end_dist, float* delta);
	virtual void draw_element(float* cur_position, float* previous_position, 
								float* cur_delta, float* previous_delta) = 0;
	void draw_corner(float *previous_point, float *cur_point, 
								float* previous_delta, float *cur_delta, 
								float* center_point, float corner_radius);
};

